<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>MODULE_IMAGE:  Fichier source de /home/radius/Documents/Rachid_Licence/LIF7/LIF7_TD1/module-image/src/Pixel.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Généré par Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="main.html"><span>Page&nbsp;principale</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li><a href="dirs.html"><span>Répertoires</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>Liste&nbsp;des&nbsp;fichiers</span></a></li>
      <li><a href="globals.html"><span>Membres&nbsp;de&nbsp;fichier</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="dir_53790bda95882cd03745840c1cece42e.html">src</a>
  </div>
</div>
<div class="contents">
<h1>Pixel.h</h1><a href="_pixel_8h.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00007"></a>00007 <span class="preprocessor">#ifndef H_PIXEL_H</span>
<a name="l00008"></a>00008 <span class="preprocessor"></span><span class="preprocessor">#define H_PIXEL_H</span>
<a name="l00009"></a>00009 <span class="preprocessor"></span>
<a name="l00010"></a>00010 <span class="comment">/* ********************************************************************* */</span>
<a name="l00011"></a>00011 <span class="comment">/*                                                                       */</span>
<a name="l00012"></a>00012 <span class="comment">/*                        Librairies de Pixel                          */</span>
<a name="l00013"></a>00013 <span class="comment">/*                                                                       */</span>
<a name="l00014"></a>00014 <span class="comment">/* ********************************************************************* */</span>
<a name="l00015"></a>00015 
<a name="l00016"></a>00016 <span class="preprocessor">#include &lt;stdlib.h&gt;</span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &lt;assert.h&gt;</span>
<a name="l00018"></a>00018 <span class="preprocessor">#include &lt;stdio.h&gt;</span>
<a name="l00019"></a>00019 
<a name="l00020"></a>00020 <span class="comment">/* ********************************************************************* */</span>
<a name="l00021"></a>00021 <span class="comment">/*                                                                       */</span>
<a name="l00022"></a>00022 <span class="comment">/*                        Définitions de type                           */</span>
<a name="l00023"></a>00023 <span class="comment">/*                                                                       */</span>
<a name="l00024"></a>00024 <span class="comment">/* ********************************************************************* */</span>
<a name="l00025"></a>00025 
<a name="l00035"></a><a class="code" href="structs_pixel.html">00035</a>     <span class="keyword">struct </span><a class="code" href="structs_pixel.html">sPixel</a> {
<a name="l00036"></a>00036 
<a name="l00037"></a><a class="code" href="structs_pixel.html#ac3c26bdba7b18fa49fef852d541fa03e">00037</a>         <span class="keywordtype">int</span> <a class="code" href="structs_pixel.html#ac3c26bdba7b18fa49fef852d541fa03e">r</a> ;
<a name="l00038"></a><a class="code" href="structs_pixel.html#a95838ecdec0ab8ef4c09340763b09040">00038</a>         <span class="keywordtype">int</span> <a class="code" href="structs_pixel.html#a95838ecdec0ab8ef4c09340763b09040">v</a> ;
<a name="l00039"></a><a class="code" href="structs_pixel.html#a17afc2137cca0a7d025256c9577907c2">00039</a>         <span class="keywordtype">int</span> <a class="code" href="structs_pixel.html#a17afc2137cca0a7d025256c9577907c2">b</a> ;
<a name="l00040"></a>00040     } ;
<a name="l00041"></a>00041 
<a name="l00046"></a><a class="code" href="_pixel_8h.html#a535e59456e3e633842529cfa8ea103c4">00046</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structs_pixel.html">sPixel</a> <a class="code" href="struct_pixel.html" title="Structure utilisée pour la gestion d&amp;#39;une image.">Pixel</a> ;
<a name="l00047"></a>00047 
<a name="l00048"></a>00048 <span class="comment">/* ********************************************************************* */</span>
<a name="l00049"></a>00049 <span class="comment">/*                                                                       */</span>
<a name="l00050"></a>00050 <span class="comment">/*                 Fonctions relatives aux images                        */</span>
<a name="l00051"></a>00051 <span class="comment">/*                                                                       */</span>
<a name="l00052"></a>00052 <span class="comment">/* ********************************************************************* */</span>
<a name="l00053"></a>00053 
<a name="l00061"></a>00061 <span class="keywordtype">int</span> <a class="code" href="_pixel_8c.html#a5471e543f4cc0813d3f55bfb3b832aab" title="Récupère la valeur rouge du pixel seléctioné en vérifiant sa validité.">getPixelRouge</a>(<span class="keyword">const</span> <a class="code" href="struct_pixel.html" title="Structure utilisée pour la gestion d&amp;#39;une image.">Pixel</a> *pix) ;
<a name="l00062"></a>00062 
<a name="l00070"></a>00070 <span class="keywordtype">int</span> <a class="code" href="_pixel_8c.html#a6c2af2c126bf976cf1fcae1468751136" title="Récupère la valeur vert du pixel seléctioné en vérifiant sa validité.">getPixelVert</a>(<span class="keyword">const</span> <a class="code" href="struct_pixel.html" title="Structure utilisée pour la gestion d&amp;#39;une image.">Pixel</a> *pix) ;
<a name="l00071"></a>00071 
<a name="l00079"></a>00079 <span class="keywordtype">int</span> <a class="code" href="_pixel_8c.html#ab7a79cdabd54437de309e4c68963df93" title="Récupère la valeur bleu du pixel seléctioné en vérifiant sa validité.">getPixelBleu</a>(<span class="keyword">const</span> <a class="code" href="struct_pixel.html" title="Structure utilisée pour la gestion d&amp;#39;une image.">Pixel</a> *pix) ;
<a name="l00080"></a>00080 
<a name="l00089"></a>00089 <span class="keywordtype">void</span> <a class="code" href="_pixel_8c.html#afc402bc403f330f308524d0160e056ad" title="Modifie la valeur rouge du pixel seléctioné en vérifiant sa validité.">setPixelRouge</a>(<a class="code" href="struct_pixel.html" title="Structure utilisée pour la gestion d&amp;#39;une image.">Pixel</a> *pix, <span class="keyword">const</span> <span class="keywordtype">int</span> valeur) ;
<a name="l00090"></a>00090 
<a name="l00099"></a>00099 <span class="keywordtype">void</span> <a class="code" href="_pixel_8c.html#ac7e725830492bba904bb3146341599b9" title="Modifie la valeur vert du pixel seléctioné en vérifiant sa validité.">setPixelVert</a>(<a class="code" href="struct_pixel.html" title="Structure utilisée pour la gestion d&amp;#39;une image.">Pixel</a> *pix, <span class="keyword">const</span> <span class="keywordtype">int</span>  valeur) ;
<a name="l00100"></a>00100 
<a name="l00109"></a>00109 <span class="keywordtype">void</span> <a class="code" href="_pixel_8c.html#a2ab00dd32000e4e3bc0874060d806617" title="Modifie la valeur bleu du pixel seléctioné en vérifiant sa validité.">setPixelBleu</a>(<a class="code" href="struct_pixel.html" title="Structure utilisée pour la gestion d&amp;#39;une image.">Pixel</a> *pix, <span class="keyword">const</span> <span class="keywordtype">int</span> valeur) ;
<a name="l00110"></a>00110 
<a name="l00111"></a>00111 
<a name="l00112"></a>00112 <span class="comment">/* ********************************************************************* */</span>
<a name="l00113"></a>00113 <span class="comment">/*                                                                       */</span>
<a name="l00114"></a>00114 <span class="comment">/*                           Test de regression                          */</span>
<a name="l00115"></a>00115 <span class="comment">/*                                                                       */</span>
<a name="l00116"></a>00116 <span class="comment">/* ********************************************************************* */</span>
<a name="l00117"></a>00117 
<a name="l00124"></a>00124 <span class="keywordtype">void</span> <a class="code" href="_pixel_8c.html#a55edb1ee783f4a041094bc2c93986b54" title="Teste toutes les fonctions du module Pixel.h.">ImRegressionTest2</a>() ;
<a name="l00125"></a>00125 
<a name="l00126"></a>00126 
<a name="l00127"></a>00127 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Généré le Fri Oct 21 20:06:53 2011 pour MODULE_IMAGE par&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>
